/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.criminalmaps.persistencia.ocorrencia;

import br.com.criminalmaps.hibernate.util.HibernateGenerico;
import br.com.criminalmaps.hibernate.util.HibernateUtility;
import br.com.criminalmaps.model.ocorrencia.Ocorrencia;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.Criteria;

/**
 *
 * @author Rafael
 */
public class OcorrenciaDao extends HibernateGenerico<Ocorrencia, Integer> implements InterfaceDaoOcorrencia{

    @Override
    public List consultar() {
       List lista = new ArrayList();
	        Criteria crit = HibernateUtility.getSession().createCriteria(Ocorrencia.class);
	 
	        lista = (List) crit.list();
	        return lista;
    }
    
}
